package com.hotel.hotelsystem.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CouponVo implements Serializable{

    private static final long serialVersionUID = -7612573238520813840L;
    // 库存id
    private Integer stockId;
    //优惠券编号
    private String couponNo;
    // 库存编号
    private String stockNo;
    //库存
    private Integer stock;
    //用户id
    private Integer userId;
    // 用户账号
    private String userAdmin;
    //领取时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime receiveTime;
    //失效时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime invalidTime;
    //优惠券使用状态
    private Integer couponUseStatus;
    // 优惠券抢购状态
    private Integer couponSeckilStatus;
}
